; example1.nsi
;
; This script is perhaps one of the simplest NSIs you can make. All of the
; optional settings are left to their default settings. The installer simply 
; prompts the user asking them where to install, and drops a copy of example1.nsi
; there. 

;--------------------------------

!define APP "hiramacvnc"

!define VER "4.1.3.r1"
!define V_E_R "4_1_3_r1"

; The name of the installer
Name "${APP} ${VER} portable"

; The file to write
OutFile "Setup_${APP}_${V_E_R}.exe"

; The default installation directory
InstallDir "$APPDATA\${APP}"

; Request application privileges for Windows Vista
RequestExecutionLevel user

AutoCloseWindow true

;--------------------------------

; Pages

Page license
Page directory
Page instfiles

LicenseData "GNUGPL2.rtf"

;--------------------------------

; The stuff to install
Section "" ;No components page, name is not important

  ; Set output path to the installation directory.
  SetOutPath $INSTDIR
  
  ; Put file there
  File "Release\vncviewer.exe"

  Exec "$INSTDIR\vncviewer.exe"

SectionEnd ; end the section
